package com.cnswhy.cloud.server.iot.dto;

import com.cnswhy.cloud.server.common.entity.enumeration.SplitType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "WxUserInfoDTO", description = "微信小程序用户信息")
public class WxUserInfoDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 下级服务商ID
     */
    @ApiModelProperty(value = "openId")
    @NotNull(message = "openid不能为空")
    private String openid;
    @ApiModelProperty(value = "昵称")
    @NotEmpty(message = "昵称不能为空")
    private String nickName;
    @ApiModelProperty(value = "性别")
    @NotEmpty(message = "性别不能为空")
    private String gender;
    @ApiModelProperty(value = "城市")
    private String city;
    @ApiModelProperty(value = "省份")
    private String province;
    @ApiModelProperty(value = "国家")
    private String country;
    @ApiModelProperty(value = "头像")
    private String avatarUrl;
    @ApiModelProperty(value = "语言")
    private String language;
}
